package com.cloudm.technician.data.config

import com.cloudm.technician.BuildConfig

/**
 * 作者: wesley
 * 时间: 2017/11/20
 * 描述: 配置相关的类
 */
class Config {
    companion object {
        var baseUrl = if (BuildConfig.DEBUG) "http://192.168.1.109:18091/" else "http://azb.cloudm.com/"
        val baseUrlForCloudm = if (BuildConfig.DEBUG) "http://192.168.1.109:18088/" else "http://api.cloudm.com/"
        val baseUrlForUploadPic = if (BuildConfig.DEBUG) "http://h5.test.cloudm.com/" else "http://h5.cloudm.com/"
        const val registerContractUrl = "http://www.cloudm.com/agreement"
        const val REALM_NAME: String = "installTreasureOnLine.realm"
        const val PREFERENCES_NAME: String = "installTreasureOnLine"
        const val IS_FIRST_TIME_IN: String = "is_first_time_in"
        const val IS_LOGIN: String = "is_login"
        const val USER_LOGIN_TOKEN: String = "user_login_token"
        const val USER_LOGIN_ID: String = "user_login_id"
        const val ACTION_LOGIN = "action_login"
        const val LICENSE_PREFIX = "license="
        const val UPTOKEN_KEY_PREFIX = "img0/"
    }
}